package pl.edu.mimuw.irs.core.util;


public class Pair<T1, T2> {

	// *** Attributes

	private T1 key;
	private T2 value;
	public T1 getKey() {
		return key;
	}
	public void setKey(T1 key) {
		this.key = key;
	}
	public T2 getValue() {
		return value;
	}
	public void setValue(T2 value) {
		this.value = value;
	}
	
	// *** Constructors
	
	public Pair(T1 key, T2 value) {
		this.key = key;
		this.value = value;
	}

	public Pair(T1 key) {
		this(key, null);
	}

	public Pair() {
		this(null);
	}
	
	@Override
	public String toString() {
		return getKey() + "=" + getValue();
	}
}
